package com.zjhcsoft.auth.gateway.route.api;

import java.util.Collection;
import org.springframework.cloud.gateway.route.RouteDefinition;

public interface IRouteService {

    /**
     * 获取路由
     * @return
     */
    Collection<RouteDefinition> getRouteDefinitions();

    /**
     * 保存路由
     * @param routeDefinition 路由定义
     * @return
     */
    boolean save(RouteDefinition routeDefinition);

    /**
     * 删除路由
     * @param routeId 路由ID
     * @return
     */
    boolean delete(String routeId);
}
